package com.yunxi.model.sys;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import lombok.Data;

import java.util.Date;

@TableName(value = "sys_menu")
@Data
public class Menu implements java.io.Serializable {

    @TableId(type = IdType.UUID)
    private String menuId;

    private String menuName;

    private String menuUrl;

    private String pid;

    private String menuOrder;

    private String menuIcon;

    private Short menuType;

    private String memo;

    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value = "CREATE_DATE", fill = FieldFill.INSERT)
    private Date createDate;

    @TableField(value = "CREATE_BY", fill = FieldFill.INSERT)
    private String createBy;

    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value = "UPDATE_DATE", fill = FieldFill.UPDATE)
    private Date updateDate;

    @TableField(value = "UPDATE_BY", fill = FieldFill.UPDATE)
    private String updateBy;

    private String menuNoneIcon;

    private String parentAddr;

    private String sysType;

    @TableField("TENANT_ID")
    private String tenantId;
}